﻿using System;

namespace SerialManager
{
    /// <summary>
    /// Simple configuration class
    /// </summary>
    internal static class Config
    {
        /// <summary>
        /// Timeout for entire serial thread, then it's aborted
        /// </summary>
        internal readonly static TimeSpan EpisodeLoaderTimeout = TimeSpan.FromSeconds( 60.0 );

        /// <summary>
        /// Number of attempts for retrieving serial information if request has timed-out
        /// </summary>
        internal readonly static int SerialRequestAttemptsCount = 3;

        /// <summary>
        /// Key for aborting loading informations about episodes
        /// </summary>
        internal readonly static ConsoleKey AbortKey = ConsoleKey.A;
        
        /// <summary>
        /// How long wait between cycles of serial thread (in miliseconds)
        /// </summary>
        internal readonly static int ProgressInterval = 500;
    }
}
